<?php
namespace app\index\controller;
use think\Controller;
use think\Request;
/**
 * 
 */
class BaseController extends Controller
{
	protected $param;
	function _initialize(){
		$param=request()->param();
		 // 判断是否登录
		if (!getCookieUserid()&&!in_array(request()->action(),['login','logout','selfreg','sendCode'])) {
			if (request()->controller()!='Api') {
				 // $this->redirect('member.member/login');
			}
			
		}
	}
}